package com.tro.mail.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tro.mail.dao.entity.MailConsignee;
import com.tro.mail.dao.entity.MailConsigneeExample;
import com.tro.mail.dao.mapper.MailConsigneeMapper;
import com.tro.mail.service.MailConsigneeManager;
@Service
public class MailConsigneeManagerImp implements MailConsigneeManager{
	@Autowired
	MailConsigneeMapper mapper;

	@Override
	public int countByExample(MailConsigneeExample example) {

		return mapper.countByExample(example);
	}

	@Override
	public int deleteByExample(MailConsigneeExample example) {

		return mapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Long id) {

		return mapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(MailConsignee record) {

		return mapper.insert(record);
	}

	@Override
	public int insertSelective(MailConsignee record) {

		return mapper.insertSelective(record);
	}

	@Override
	public List<MailConsignee> selectByExample(MailConsigneeExample example) {

		return mapper.selectByExample(example);
	}

	@Override
	public MailConsignee selectByPrimaryKey(Long id) {

		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(MailConsignee record, MailConsigneeExample example) {

		return mapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(MailConsignee record, MailConsigneeExample example) {

		return mapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(MailConsignee record) {

		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(MailConsignee record) {

		return mapper.updateByPrimaryKey(record);
	}
}